import cv2
from enum import Enum

class LightType(Enum):
    INVALID_LIGHT = -1
    BIG_LIGHT = 0
    SMALL_LIGHT = 1
    HUGE_LIGHT = 2
    CIRCULAR_LIGHT = 3

class RuneType(Enum):
    INVALID = -1
    DISACTIVED = 0 # 未激活扇叶
    ACTIVED = 1    # 已激活扇叶
    R_SIGN = 2     # R标
    TargetRing = 3 # 靶环
    

class Light:
    def __init__(self,contour,rectangle) -> None:
        self.contour = contour
        self.rect = rectangle
        self.type = LightType.INVALID_LIGHT

class Rune:
    def __init__(self,rectangle) -> None:
        self.rect = rectangle
        self.type = RuneType.INVALID


class DectorState(Enum):
    NO_ACTION = 0
    COLLECTING = 1
    PREDICTING = 2
    TRACKING = 3
